import { RequestParams, Method, ContentType } from "axios-mapper";
import httpClient from "utils/http";
import { Result } from "model/base.model";
import { TestEntity } from "./model/test.model";
enum Api {
	fetchList = "/api/test/fetchList",
}

export const fetchList = (data: RequestParams) => {
	return httpClient.get<Result<TestEntity[]>>({
		path: Api.fetchList,
		params: data,
	});
};
